		
			<h4><img src="<?php echo $html->url('/img/admin/list_registers.png');?>" />  <?php __('list_registers');?></h4>

			<div class="white_box white_box_last">
				<?php if(!empty($search)){?>
				<div class="found_text"><?php __('search_result');?> (<?php echo $paginator->counter(array('format' => '%count%')); 
	?>) &raquo; <strong><?php echo $search?></strong> - <a href="<?php echo $html->url('index'); ?>"><img src="<?php echo $html->url('/img/admin/round_delete.png'); ?>" /> <?php __('no_filters');?></a></div>
				<?php }?>

				<?php if($paginator->counter() > 0){?>

				<div class="options_list">
					<a href="javascript:;" onclick="javascript:checkAll('f_registers',true);"><img src="<?php echo $html->url('/img/admin/checkbox_checked.png'); ?>" /> <?php __('select_all');?></a>
					<a href="javascript:;" onclick="javascript:checkAll('f_registers',false);"><img src="<?php echo $html->url('/img/admin/checkbox_unchecked.png'); ?>" /> <?php __('unselect_all');?></a>
					<a href="javascript:;" onclick="javascript:alertDel('f_registers','<?php __("question_delete_registers"); ?>', '<?php __("no_selected_registers"); ?>');"><img src="<?php echo $html->url('/img/admin/doc_delete.png'); ?>" /> <?php __('del_registers');?></a>

					<img src="<?php echo $html->url('/img/admin/list_num.png'); ?>" />			
					<select name="nreg" onChange="javascript:JumpMenu('<?php echo $html->url(array('controller'=>$this->params['controller'],'action'=>'/list/search:'.$search, 'admin' => true));?>',this,0);">
					<?php foreach($lnregpp as $index => $value){?>
						<option value="<?php echo $value?>" <?php if($nreg == $value){?> selected="selected" <?php }?>><?php echo $value?> <?php __('registers_pages');?></option>
					<?php } ?>
					</select> 

				</div>

				<form name="f_registers" id="f_registers" method="post" action="<?php echo $html->url('delete'); ?>">

				<table class="tab_data" id="tab_data">
					<thead>
				  		<th style="width:1%;text-align:center;">#</th>
						<th style="width:24%;"><?php __('user_name');?></th>
						<th style="width:20%;"><?php __('group');?></th>
						<th style="width:25%;text-align:center;"><?php __('created');?></th>
						<th style="width:10%;text-align:center;"><?php __('edit');?></th>
						<th style="width:10%;text-align:center;"><?php __('permissions');?></th>
						<th style="width:10%;text-align:center;"><?php __('active');?></th>
					</thead>	

					<tbody class="tab_registers">

						<?php foreach($registers as $register){ ?>						
						<tr id="reg_<?php echo $register['User']['id'];?>" name="reg_<?php echo $register['User']['id'];?>" >
							<td style="width:1%;" class="grey_td"><input type="checkbox"  value="<?php echo $register['User']['id'];?>" name="list_reg[]" onClick="javascript:$('reg_<?php echo $register['User']['id'];?>').toggleClassName('checked');" id="<?php echo $register['User']['id'];?>" /></td>
							<td style="width:34%;"><?php echo $register['User']['username'];?></td>
							<td style="width:20%;"><?php echo $register['Group']['name'];?></td>
							<td style="width:25%;text-align:center;"><?php echo date("H:i:s - d/m/Y",strtotime($register['User']['created']));?></td>

							<td style="width:10%;text-align:center;" class="blue_td"><a href="<?php echo $html->url(array('controller'=>$this->params['controller'],'action'=>'view', 'admin' => true, $register['User']['id']));?>"><img src="<?php echo $html->url('/img/admin/doc_edit.png');?>"  /> </a></td>
							
							<td style="width:10%;text-align:center;" class="blue_td"><a href="<?php echo $html->url(array('controller'=>$this->params['controller'],'action'=>'permissions', 'admin' => true, $register['User']['id']));?>"><img src="<?php echo $html->url('/img/admin/permissions_edit.png');?>"  /> </a></td>							
							
							<td style="width:10%;text-align:center;" class="blue_td">
							<input type="checkbox" value="1" name="check_<?php echo $register['User']['id'];?>" id="check_<?php echo $register['User']['id'];?>"  <?php if($register['User']['active']== 1){?> checked="checked" <?php } ?> onClick="javascript:ajaxSetActive('<?php echo $register['User']['id']?>', Number($('check_<?php echo $register['User']['id'];?>').checked), '<?php echo $html->url(array( 'controller' => $this->params['controller'], 'action' => 'setActive', 'admin' => true));?>', 'ajax_loading')" />
							</td>
						</tr>
						<?php } ?>	

					</tbody>
					<tfoot>
						<tr>
							<td colspan="8" class="paginator">
								<?php $paginator->options(array('url' => array('search' => $search ,'nreg' => $nreg))); ?>
								<?php echo $paginator->prev(null,null);?>
								<?php echo $paginator->counter(array('format' => 'P&aacute;gina  %page% de %pages%')); ?>
								<?php echo $paginator->next(null,null);?>
								<?php echo $paginator->counter(array('format' => ', mostrando %current% registros de %count%')); ?>
							</tr>
					</tfoot>
				</table>

				</form>

				<div class="options_list">
					<a href="javascript:;" onclick="javascript:checkAll('f_registers',true);"><img src="<?php echo $html->url('/img/admin/checkbox_checked.png'); ?>" /> <?php __('select_all');?></a>
					<a href="javascript:;" onclick="javascript:checkAll('f_registers',false);"><img src="<?php echo $html->url('/img/admin/checkbox_unchecked.png'); ?>" /> <?php __('unselect_all');?></a>
					<a href="javascript:;" onclick="javascript:alertDel('f_registers','<?php __("question_delete_registers"); ?>', '<?php __("no_selected_registers"); ?>');"><img src="<?php echo $html->url('/img/admin/doc_delete.png'); ?>" /> <?php __('del_registers');?></a>

					<img src="<?php echo $html->url('/img/admin/list_num.png'); ?>" />			
					<select name="nreg" onChange="javascript:JumpMenu('<?php echo $html->url(array('controller'=>$this->params['controller'],'action'=>'/list/search:'.$search, 'admin' => true));?>',this,0);">
					<?php foreach($lnregpp as $index => $value){?>
						<option value="<?php echo $value?>" <?php if($nreg == $value){?> selected="selected" <?php }?>><?php echo $value?> <?php __('registers_pages');?></option>
					<?php } ?>
					</select> 
				</div>
				<?php }else{ ?>
					<div class="info_user"><img src="<?php echo $html->url('/img/admin/exclamation.png');?>" /> <?php __('no_found_register');?></div>
				<?php } ?>
				</div>
